<?php

/**
 * This is the model class for table "email_template".
 *
 * The followings are the available columns in table 'email_template':
 * @property integer $id
 * @property string $code
 * @property string $title
 * @property string $subject
 * @property string $body
 * @property string $from
 * @property string $updated_time
 * @property string $params
 * @property integer $status
 */
class EmailTemplate extends EmailTemplatePeer
{
    const STATUS_ENABLED = 0;
    const STATUS_DISABLED = 1;
    
	var $className = __CLASS__;

    public function init()
	{
        $this->status = self::STATUS_ENABLED;
	}

	/**
	 * Returns the static model of the specified AR class.
	 * @return EmailTemplate the static model class
	 */
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}
}